package com.springstudy.mybatisplus.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springstudy.mybatisplus.entity.Career;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chenrongrong
 * @since 2020/3/6 15:23
 */
@Repository
@Mapper
public interface CareerMapper extends BaseMapper<Career> {

    /**
     * 获取id的list
     * @return
     */
    List<Long> selectIdList();

    /**
     * 获取带Person的list属性的Career列表
     * @return
     */
    List<Career> selectListWithPerson();
}
